//
//  LFBottomThreeCell.m
//  LoveFruit
//
//  Created by Hannibal_zj on 16/9/23.
//  Copyright © 2016年 张令林. All rights reserved.
//

#import "LFBottomThreeCell.h"

@interface LFBottomThreeCell ()
@property (weak, nonatomic) IBOutlet UILabel *remarkLabel;

@end
@implementation LFBottomThreeCell

-(void)setRemarkLabel:(UILabel *)remarkLabel {
    _remarkLabel = remarkLabel;
    
    #pragma mark - 添加备注通知
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(remarkClick:) name:@"LFRemakNotification" object:nil];
}

#pragma mark - 备注通知方法
- (void)remarkClick:(NSNotification *)notifcation {
    
    self.remarkLabel.text = notifcation.userInfo[@"textStr"];
}

#pragma mark - 移除通知
-(void)dealloc{
//    [[NSNotificationCenter defaultCenter] removeObserver:self name:@"LFRemakNotification" object:nil];
    [[NSNotificationCenter defaultCenter] removeObserver:self];
    NSLog(@"移除通知");
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

 
}

@end
